<!DOCTYPE html>
<html>
<head>
    <title>AZ-204 Practice Question</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            margin: 20px;
        }
        .question {
            background-color: #f5f5f5;
            padding: 15px;
            border-left: 4px solid #0078d4;
            margin-bottom: 20px;
        }
        .options {
            margin: 15px 0;
        }
        .option {
            margin: 8px 0;
        }
        .answer {
            display: none;
            background-color: #e6f2ff;
            padding: 15px;
            margin-top: 15px;
            border-left: 4px solid #0078d4;
        }
        button {
            background-color: #0078d4;
            color: white;
            border: none;
            padding: 8px 16px;
            cursor: pointer;
            font-size: 14px;
        }
        button:hover {
            background-color: #005a9e;
        }
    </style>
</head>
<body>
    <div class="question">
        <p><strong>QUESTION NO: 108</strong></p>
        <p>Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.</p>
        <p>After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.</p>
        
        <p>You are developing an Azure Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently.</p>
        
        <p>You have the following requirements:</p>
        <ul>
            <li>Queue size must not grow larger than 80 gigabytes (GB).</li>
            <li>Use first-in-first-out (FIFO) ordering of messages.</li>
            <li>Minimize Azure costs.</li>
        </ul>
        
        <p>You need to implement the messaging solution.</p>
        
        <p><strong>Solution:</strong> Use the .Net API to add a message to an Azure Service Bus Queue from the mobile application. Create an Azure Function App that uses an Azure Service Bus Queue trigger.</p>
        
        <p>Does the solution meet the goal?</p>
        
        <div class="options">
            <div class="option">
                <input type="radio" id="optionA" name="answer" value="A">
                <label for="optionA">A. Yes</label>
            </div>
            <div class="option">
                <input type="radio" id="optionB" name="answer" value="B">
                <label for="optionB">B. No</label>
            </div>
        </div>
        
        <button onclick="showAnswer()">查看答案</button>
        
        <div id="answer" class="answer">
            <p><strong>Answer: A. Yes</strong></p>
            <p><strong>Explanation:</strong></p>
            <p>You can create a function that is triggered when messages are submitted to an Azure Storage queue.</p>
            <p>Reference: <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-queue-triggered-function" target="_blank">https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-queue-triggered-function</a></p>
        </div>
    </div>

    <script>
        function showAnswer() {
            document.getElementById('answer').style.display = 'block';
        }
    </script>
</body>
</html>
